#!/bin/sh
#you should put this file in you amr top folder
#run: source build_amr.sh
export NDK='/home/a/Downloads/android-ndk-r10e/'
export PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/linux-x86_64/
export PLATFORM=$NDK/platforms/android-8/arch-arm/
export PREFIX=$PWD/../opencore-amr-install
export CC=$PREBUILT/bin/arm-linux-androideabi-gcc
export CXX=$PREBUILT/bin/arm-linux-androideabi-g++
export LDFLAGS="--sysroot=$PLATFORM"
export CFLAGS="-I$PLATFORM/usr/include"
export CXXFLAGS=$CFLAGS

./configure --prefix=$PREFIX \
--with-sysroot=$PLATFORM  \
--with-pic \
--enable-shared=no \
--host=arm \
#--cross-prefix=$PREBUILT/bin/arm-linux-androideabi- \
#--disable-asm \



